fillOn

Fills an image storage instance with a single color

Can be used to initialize an image with a set color.

  1. Image fillOn(Image image, Color value)
    ref @nogc @safe
    Image
    fillOn
    (
    Image
    Color = ImageColor!Image
    )
    (
    ref Image image
    ,
    Color value
    )
    if (
    isImage!Image &&
    is(Image == struct)
    &&
    !isPointer!Image
    )
  2. Image fillOn(Image image, Color value)

Parameters

image Image

The image to fill into

value Color

The color to fill as

Return Value

Type: Image

The image instance for composability

Examples

SwappableImage!RGB8 image = ...;
image.fill(RGB8(77, 82, 31));

Meta